package com.lyf.boot.modules.index.entity;

import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * 个人信息
 * @author Luyufan
 * @date 2023/7/6 10:53
 */
@Data
@Accessors(chain = true)
public class ProfileVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1857413098330215134L;

    private Long userId;

    private String username;

    private String realName;

    private String nickName;

    private String email;

    private String avatar;

    private String phoneNumber;

    private String deptName;

    private List<ProfileRole> roles;

    @Data
    public static class ProfileRole implements Serializable {

        @Serial
        private static final long serialVersionUID = 7025349966444132625L;

        private String roleName;

        private String roleCode;
    }
}
